package com.fj.nio;

import java.nio.IntBuffer;

/**
 * @author fj
 * @date 2023/12/6 20:26
 */
public class BufferTest {
    public static void main(String[] args) {
        IntBuffer intBuffer = IntBuffer.wrap(new int[]{0,2,4,6,8});
//        intBuffer.flip();
        while (intBuffer.hasRemaining()){
            System.out.println("----------");
            System.out.println(intBuffer.get());
        }
    }
}
